package com.sso.service;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sso.dao.EntityDaoImpl;
import com.sso.entity.TblAdmin;
import com.sso.entity.TblUsers;
@Service
public class SsoService {
	protected final transient Log log = LogFactory.getLog(SsoService.class);

	@Autowired
	private EntityDaoImpl dao;
	
	/**
	 * 
	 * @return
	 */
	public List<Object> listConfig() {
		List<Object> list = null;
		String sql = "from TblConfig";
		list = (List<Object>)dao.createQuery(sql, 0, -1);
		return list;
	}
	
	/**
	 * 
	 * @param user
	 * @return
	 */
	public List<Object> findUser(TblUsers user) {
		List users = null;
		return users;
	}
	
	public List<Object> findAdmin(TblAdmin admin) {
		List list = null;
		return list;
	}
}
